// created by noellynch
// May 6, 2009

package com.sceneworker.app.undo;

import com.jme.math.Quaternion;
import com.jme.scene.Spatial;

public class SpatialRotationUndoAction extends SpatialUndoAction {

	protected	Quaternion		mcl_originalRotation;
	
	public SpatialRotationUndoAction(Spatial cl_spatial, Quaternion cl_rot) {
		super(cl_spatial);
		
		mcl_originalRotation = cl_rot;
	}

	@Override
	public void undo() {
		mcl_spatial.setLocalRotation(mcl_originalRotation);
		mcl_spatial.updateGeometricState(0, true);
	}

}
